def read_single_line_file(file_path):
    try:
        with open(file_path, 'r') as file:
            line = file.readline().strip()
        print(line, "dasdsa")
        return line
    except FileNotFoundError:
        return ""
    except Exception as e:
        return ""

# Example usage
file_path = 'publish_id.txt'
content = read_single_line_file(file_path)

if content:
    print("不空")

print(content)
